from pydantic import BaseModel
from sqlalchemy import Integer,String
from sqlalchemy.orm import Mapped,mapped_column

from model import Base

class Admin(Base):
    __tablename__ = 'admin'
    id: Mapped[int] = mapped_column(Integer,primary_key=True,nullable=False)
    username: Mapped[str] = mapped_column(String(255),nullable=False)
    password: Mapped[str] = mapped_column(String(255),nullable=False)


class AdminModel(BaseModel):
    username: str
    password: str